/*
** my_put_nbr.c for my_put_nbr in /home/jousse_f//afs/rendu/piscine/Jour_03
** 
** Made by florian jousseau
** Login   <jousse_f@epitech.net>
** 
** Started on  Thu Oct  7 11:34:04 2010 florian jousseau
** Last update Tue Oct 19 15:55:16 2010 florian jousseau
*/

int	my_put_nbr(int nb)
{
  int	b;
  
  b = 1;
  if (nb < 0)
    {
      my_putchar('-');
      nb = -nb;
    }
  while (nb / b >= 10)
    {
      b = b * 10;
    }
  while (b > 0)
    {
      my_putchar(nb / b % 10 + '0');
      b = b / 10;
    }
  
}
